import request from '@/utils/request'


export const getListPage = (data) => {
    return request({
        url: '/admin/condition/getList',
        method: 'post',
        data
    })
}

export const deleteInfo = (data) => {
    return request({
        url: '/admin/condition/delete',
        method: 'post',
        params: data
    })
}

export const getInfo = (data) => {
    return request({
        url: '/admin/condition/info',
        method: 'post',
        params: data
    })
}

export const upload = (formData) => {
    return request({
        url: '/admin/condition/upload',
        method: 'post',
        data: formData,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}